/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.conformPrinciple.LSP.conf;

import org.springframework.context.annotation.Bean;
import za.ac.cput.conformPrinciple.LSP.Impl.RectangleImp;
import za.ac.cput.conformPrinciple.LSP.Impl.SquareImp;
import za.ac.cput.conformPrinciple.LSP.Rectangle;
import za.ac.cput.conformPrinciple.LSP.Square;

/**
 *
 * @author Oceanwave
 */
public class AppConfig 
{

    @Bean(name = "rectangle")
    public Rectangle getTheRectangle() 
    {
        return new RectangleImp();
    }

    @Bean(name = "square")
    public Square getTheSquare() 
    {
        return new SquareImp();
    }
}
